package com.yanchi.proxy.staticproxy;

// 中介：代理类
public class Proxy implements Rent{

    private Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        look();
        host.rent();
        fee();
    }

    public void look(){
        System.out.println("去看房子！");
    }

    public void fee(){
        System.out.println("收中介费！");
    }
}
